package com.fausto.learnimprint.core.service

import com.baomidou.mybatisplus.extension.service.IService
import com.fausto.learnimprint.core.model.entity.Discuss

/**
 *
 *
 * 服务类
 *
 *
 * @author fausto
 * @since 2022-03-28
 */
interface IDiscussService : IService<Discuss> {

    fun latestComments(): List<Discuss>

    fun saveDiscuss(blogId: Int, discussBody: String)

    fun deleteDiscuss(discussId: Int): Boolean

    fun findDiscussById(discussId: Int): Discuss

    fun findDiscussPage(blogId: Int, page: Int, showCount: Int): List<Discuss>

    fun findUserDiscuss(): List<Discuss>
}